package com.itheima.dao;

import com.itheima.model.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
@Mapper
public interface UserMapper {
    @Insert("INSERT INTO t_user(id,username,password,email,created,valid,img) " +
            "values(#{id},#{username},#{password},#{email},#{created},#{valid},#{img})")

    @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
    public int insertUser(User user);



}
